]> p2p-next.cs.pub.ro Git - cs-p2p-next.git/commitdiff
autorun: fixed int to str bug in Server
authorAdriana Draghici <adriana008@gmail.com>
Fri, 30 Apr 2010 09:37:26 +0000 (09:37 +0000)
committerAdriana Draghici <adriana008@gmail.com>
Fri, 30 Apr 2010 09:37:31 +0000 (09:37 +0000)
autorun/server/Server.py

index 49366f068b03f12c29c761a45babc7c18c7e6839..406b48b92efaedcf67fafd891fbb720fbb18a38d 100644 (file)
@@ -255,7 +255,7 @@ class MyDaemon(Daemon):
         
         int_pid = int(pid)
         if int_pid == -1 or int_pid not in self.processes_fd.keys():
-            return "Invalid pid " + pid
+            return "Invalid pid " + str(pid)
         os.kill(int_pid, signal.SIGKILL) # kill generates zombies
         os.wait()
         self.processes_fd[int_pid][0].close()