chiark
/
gitweb
/
~mdw
/
sw-tools
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
77bef54
)
Fix signal handling some more.
1.0.0pre6
author
mdw
<mdw>
Thu, 24 Jun 1999 16:02:22 +0000
(16:02 +0000)
committer
mdw
<mdw>
Thu, 24 Jun 1999 16:02:22 +0000
(16:02 +0000)
src/sw_rsh.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sw_rsh.c
b/src/sw_rsh.c
index 0406798ba312a59b92b5554345094a793fcef5d8..91aa82b72e208fdda814dd967e1b5545fbcf22d6 100644
(file)
--- a/
src/sw_rsh.c
+++ b/
src/sw_rsh.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: sw_rsh.c,v 1.
4 1999/06/24 15:51:17
mdw Exp $
+ * $Id: sw_rsh.c,v 1.
5 1999/06/24 16:02:22
mdw Exp $
*
* Run remote commands
*
*
* Run remote commands
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sw_rsh.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: sw_rsh.c,v $
+ * Revision 1.5 1999/06/24 16:02:22 mdw
+ * Fix signal handling some more.
+ *
* Revision 1.4 1999/06/24 15:51:17 mdw
* Fix signal handlers so they don't corrupt `errno'.
*
* Revision 1.4 1999/06/24 15:51:17 mdw
* Fix signal handlers so they don't corrupt `errno'.
*
@@
-716,10
+719,11
@@
int swrsh(sw_remote *r, const char *host, const char *cmd, char *argv[])
/* --- Child end of a local job --- */
/* --- Child end of a local job --- */
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
+
if (!host) {
r->fdin = r->fdout = sk[1];
if (!host) {
r->fdin = r->fdout = sk[1];
- signal(SIGINT, SIG_DFL);
- signal(SIGQUIT, SIG_DFL);
remote(r, cmd, argv, environ);
}
remote(r, cmd, argv, environ);
}