/[hurd]/hurd/daemons/console-run.c
ViewVC logotype

Diff of /hurd/daemons/console-run.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by marcus, Tue Jan 30 23:45:31 2001 UTC revision 1.5 by neal, Tue Mar 26 18:59:31 2002 UTC
# Line 141  open_console (char **namep) Line 141  open_console (char **namep)
141            termname = terminal + strlen (terminal) + 1; /* first arg is name */            termname = terminal + strlen (terminal) + 1; /* first arg is name */
142    
143            /* The callback to start_translator opens TERM as a side effect.  */            /* The callback to start_translator opens TERM as a side effect.  */
144            errno =            err =
145              fshelp_start_translator (open_node, NULL, terminal, terminal,              fshelp_start_translator (open_node, NULL, terminal, terminal,
146                                       argz_len, 3000, &control);                                       argz_len, 3000, &control);
147            if (errno)            if (err)
148              {              {
149                error (0, errno, "%s", terminal);                error (0, err, "%s", terminal);
150                continue;                continue;
151              }              }
152    
153            errno = file_set_translator (term, 0, FS_TRANS_SET, 0, 0, 0,            err = file_set_translator (term, 0, FS_TRANS_SET, 0, 0, 0,
154                                         control, MACH_MSG_TYPE_COPY_SEND);                                         control, MACH_MSG_TYPE_COPY_SEND);
155            mach_port_deallocate (mach_task_self (), control);            mach_port_deallocate (mach_task_self (), control);
156            if (errno)            if (err)
157              {              {
158                error (0, errno, "%s", termname);                error (0, err, "%s", termname);
159                continue;                continue;
160              }              }
161            mach_port_deallocate (mach_task_self (), term);            mach_port_deallocate (mach_task_self (), term);
# Line 167  open_console (char **namep) Line 167  open_console (char **namep)
167                error (0, errno, "%s", termname);                error (0, errno, "%s", termname);
168                continue;                continue;
169              }              }
170            errno = io_stat (term, &st);            err = io_stat (term, &st);
171            if (errno)            if (err)
172              {              {
173                error (0, errno, "%s", termname);                error (0, err, "%s", termname);
174                term = MACH_PORT_NULL;                term = MACH_PORT_NULL;
175                continue;                continue;
176              }              }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26