[vala] libdaemon: Use correct type for PID in fork and pid_file_is_running.



commit b64e765231bf0da0b1f906f43bae9b220b7a42dc
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Wed Aug 11 22:38:29 2010 -0700

    libdaemon: Use correct type for PID in fork and pid_file_is_running.
    
    Fixes bug 626540.

 vapi/libdaemon.vapi |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/vapi/libdaemon.vapi b/vapi/libdaemon.vapi
index 35ec0e8..46b4629 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]