[ltt-dev] LTT Userspace problems

Mathieu Desnoyers compudj at krystal.dyndns.org
Thu Jan 28 12:37:56 EST 2010


* Douglas Santos (douglas.santos at polymtl.ca) wrote:
> Quoting Mathieu Desnoyers <compudj at krystal.dyndns.org>:
> > It should clearly be created automatically by UST.
> 
> here you are

It looks like there was already a pending commit to fix this. Thanks for
the patch anyway, it's very appreciated.

Mathieu

> 
> --- usttrace.orig	2009-11-13 14:35:47.000000000 -0500
> +++ usttrace	2010-01-28 10:24:20.000000000 -0500
> @@ -78,6 +78,18 @@
>  OUTDIR="$BASE_TRACE_DIR/$DATESTRING"
>  mkdir -p "$OUTDIR"
> 
> +# create socks directory
> +SOCKSDIR=/tmp/socks
> +if [ ! -d $SOCKSDIR ]
> +then
> +	echo "Creating $SOCKSDIR"
> +	mkdir -p "$SOCKSDIR"
> + 	if [ $? -ne 0 ]
> +	then
> +		exit 1
> +	fi
> +fi
> +
>  # Choose socket path
>  SOCKPATH="/tmp/ust-sock-$$"
> 
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list