Diff

Differences From Artifact [6f26c1a3c8]:

To Artifact [325188697d]:


230
231
232
233
234
235
236











237
238
239
240
241
242
243
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254







+
+
+
+
+
+
+
+
+
+
+







	perror("unlockpt");
	exit(1);
    }

    name[FILENAME_MAX-1] = '\0';
    strncpy(name, ptsname(pty_master_fd), FILENAME_MAX-1);
#endif

    /*
     * Set the backspace character to be whichever of ^H and ^? is
     * specified by bksp_is_delete.
     */
    {
	struct termios attrs;
	tcgetattr(pty_master_fd, &attrs);
	attrs.c_cc[VERASE] = cfg.bksp_is_delete ? '\177' : '\010';
	tcsetattr(pty_master_fd, TCSANOW, &attrs);
    }

    /*
     * Trap as many fatal signals as we can in the hope of having
     * the best chance to clean up utmp before termination.
     */
    signal(SIGHUP, fatal_sig_handler);
    signal(SIGINT, fatal_sig_handler);