summaryrefslogtreecommitdiff
path: root/vapi/libdaemon.vapi
diff options
context:
space:
mode:
authorMaciej Piechotka <uzytkownik2@gmail.com>2010-08-11 22:38:29 -0700
committerEvan Nemerson <evan@coeus-group.com>2010-08-11 22:44:39 -0700
commitb64e765231bf0da0b1f906f43bae9b220b7a42dc (patch)
treee8279765169d39feb98e84918bc08ada2238cfcb /vapi/libdaemon.vapi
parent257258926e87e10a7eb4d506c528bb922e2d3fd5 (diff)
downloadvala-b64e765231bf0da0b1f906f43bae9b220b7a42dc.tar.gz
libdaemon: Use correct type for PID in fork and pid_file_is_running.
Fixes bug 626540.
Diffstat (limited to 'vapi/libdaemon.vapi')
-rw-r--r--vapi/libdaemon.vapi12
1 files changed, 10 insertions, 2 deletions
diff --git a/vapi/libdaemon.vapi b/vapi/libdaemon.vapi
index 35ec0e863..46b4629b1 100644
--- a/vapi/libdaemon.vapi
+++ b/vapi/libdaemon.vapi
@@ -83,7 +83,11 @@ namespace Daemon {
public int exec (string dir, out int ret, string prog, ...);
- public int fork ();
+#if POSIX
+ public Posix.pid_t fork ();
+#else
+ public GLib.Pid fork ();
+#endif
public int retval_init ();
public void retval_done ();
public int retval_wait (int timeout);
@@ -111,7 +115,11 @@ namespace Daemon {
public unowned string pid_file_proc_default ();
public int pid_file_create ();
public int pid_file_remove ();
- public int pid_file_is_running ();
+#if POSIX
+ public Posix.pid_t pid_file_is_running ();
+#else
+ public GLib.Pid pid_file_is_running ();
+#endif
public int pid_file_kill (Sig s);
public int pid_file_kill_wait (Sig s, int m);