From 7bbbcff7db94282d57f7c8824ec1c46c8f7aa18e Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 25 Apr 2009 16:50:44 +0200 Subject: use x window id for fifo, not pid --- uzbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index b3142cd..6c39e4f 100644 --- a/uzbl.c +++ b/uzbl.c @@ -118,11 +118,11 @@ static void { if (fifodir) { - sprintf (fifopath, "%s/uzbl_%d", fifodir, getpid ()); + sprintf (fifopath, "%s/uzbl_%d", fifodir, (int) xwin); } else { - sprintf (fifopath, "/tmp/uzbl_%d", getpid ()); + sprintf (fifopath, "/tmp/uzbl_%d", (int) xwin); } if (mkfifo (fifopath, 0666) == -1) -- cgit v1.2.3