diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-30 10:32:34 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2014-09-25 09:45:32 +0200 |
commit | 736d4d93bae2cb68622abb89e1b28d14fbfbddd9 (patch) | |
tree | 1e8795aa74b4b1b8f07c8131849cb249c1a3bcc7 | |
parent | 5d1311db3679526e08e4f1e3a31e57755880dcf9 (diff) | |
download | p11-kit-736d4d93bae2cb68622abb89e1b28d14fbfbddd9.tar.gz |
remote: is now running as daemon
-rw-r--r-- | p11-kit/remote.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p11-kit/remote.c b/p11-kit/remote.c index 6316717..b6f7681 100644 --- a/p11-kit/remote.c +++ b/p11-kit/remote.c @@ -254,6 +254,12 @@ p11_kit_remote_serve_module (CK_FUNCTION_LIST *module, } #endif + /* run as daemon */ + if (daemon(0,0) == -1) { + e = errno; + p11_message ("could not daemonize: %s", strerror(e)); + } + rc = listen(sd, 1024); if (rc == -1) { e = errno; |