Index: trunk/Ohana/src/imregister/imreg/SetSignals.c
===================================================================
--- trunk/Ohana/src/imregister/imreg/SetSignals.c	(revision 27611)
+++ trunk/Ohana/src/imregister/imreg/SetSignals.c	(revision 33660)
@@ -90,5 +90,5 @@
   char username[256], machine[256];
   char line[512];
-  int i, wsock, rsock;
+  int i, iosock[3];
   struct stat filestat;
 
@@ -99,10 +99,11 @@
 
   /* send signal to remote machine */
-  if (!rconnect (machine, CONNECT, &rsock, &wsock)) {
-    fprintf (stderr, "can't make connection to machine %s to kill process %d\n", machine, pid);
+  int errorInfo;
+  if (!rconnect (CONNECT, machine, "/bin/csh", iosock, &errorInfo, TRUE)) {
+    fprintf (stderr, "can't make connection to machine %s to kill process %d (error %d)\n", machine, pid, errorInfo);
     exit (1);
   }
   sprintf (line, "kill -TERM %d\n", pid);
-  if (write (wsock, line, strlen (line)) != strlen(line)) {
+  if (write (iosock[0], line, strlen (line)) != strlen(line)) {
     fprintf (stderr, "error sending signal\n");
     exit (1);
