--- xclip-0.12/xclip.c.orig 2009-09-27 13:43:25 +0300 +++ xclip-0.12/xclip.c 2009-11-15 17:05:02 +0200 @@ -276,6 +276,9 @@ exit(EXIT_SUCCESS); } + /* child: start a new session, and avoid getting sighup */ + setsid(); + /* print a message saying what we're waiting for */ if (fverb > OSILENT) { if (sloop == 1)