Mercurial > emacs
comparison src/process.c @ 110730:09a7eef06018
Remove unused code.
* src/sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
select emulation, all systems support select.
(set_exclusive_use): Remove, the only user is in an #if 0 block.
* src/process.c (create_process): Remove #if 0 code.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sun, 03 Oct 2010 07:16:48 -0700 |
parents | 55c8c3ca3d48 |
children | 00fad82e2b50 |
comparison
equal
deleted
inserted
replaced
110729:99084f50aa8e | 110730:09a7eef06018 |
---|---|
116 #include "xgselect.h" | 116 #include "xgselect.h" |
117 #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ | 117 #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ |
118 #ifdef HAVE_NS | 118 #ifdef HAVE_NS |
119 #include "nsterm.h" | 119 #include "nsterm.h" |
120 #endif | 120 #endif |
121 | |
121 extern int timers_run; | 122 extern int timers_run; |
122 | 123 |
123 Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; | 124 Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; |
124 Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime; | 125 Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime; |
125 Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | 126 Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; |
1866 emacs_close (wait_child_setup[0]); | 1867 emacs_close (wait_child_setup[0]); |
1867 emacs_close (wait_child_setup[1]); | 1868 emacs_close (wait_child_setup[1]); |
1868 report_file_error ("Setting file descriptor flags", Qnil); | 1869 report_file_error ("Setting file descriptor flags", Qnil); |
1869 } | 1870 } |
1870 } | 1871 } |
1871 #endif | |
1872 | |
1873 #if 0 | |
1874 /* Replaced by close_process_descs */ | |
1875 set_exclusive_use (inchannel); | |
1876 set_exclusive_use (outchannel); | |
1877 #endif | 1872 #endif |
1878 | 1873 |
1879 #ifdef O_NONBLOCK | 1874 #ifdef O_NONBLOCK |
1880 fcntl (inchannel, F_SETFL, O_NONBLOCK); | 1875 fcntl (inchannel, F_SETFL, O_NONBLOCK); |
1881 fcntl (outchannel, F_SETFL, O_NONBLOCK); | 1876 fcntl (outchannel, F_SETFL, O_NONBLOCK); |