summaryrefslogtreecommitdiff
path: root/net/nxproxy/files
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2010-08-16 18:56:41 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2010-08-16 18:56:41 +0000
commitb342565b1f55612c95e59f8d4c96c7bf0e5f07b6 (patch)
treefaef5e68b93ea1b587f33feae73981bde9ee023f /net/nxproxy/files
parent- fix start of opera-linuxplugins (diff)
Move setsid from x2goclient-cli to nxproxy in preperation for upcoming qt x2goclient
Notes
Notes: svn path=/head/; revision=259392
Diffstat (limited to 'net/nxproxy/files')
-rw-r--r--net/nxproxy/files/setsid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/nxproxy/files/setsid.c b/net/nxproxy/files/setsid.c
new file mode 100644
index 000000000000..09c711d0e638
--- /dev/null
+++ b/net/nxproxy/files/setsid.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+int main(int argc,char** argv)
+{
+ setsid();
+ execvp(argv[1], argv+1);
+ return 0;
+}