]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libdaemon: Use correct type for PID in fork and pid_file_is_running.
authorMaciej Piechotka <uzytkownik2@gmail.com>
Thu, 12 Aug 2010 05:38:29 +0000 (22:38 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Thu, 12 Aug 2010 05:44:39 +0000 (22:44 -0700)
Fixes bug 626540.

vapi/libdaemon.vapi

index 35ec0e8634581311702ae1867ab81fe923ac47a4..46b4629b17e6f41d8fd5d8d3c420c4b8b575a2a8 100644 (file)
@@ -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);