diff options
author | james <> | 2008-03-12 01:26:56 +0000 |
---|---|---|
committer | james <> | 2008-03-12 01:26:56 +0000 |
commit | 5bffe5e4528e109b346f6dd9128176df912ff4e8 (patch) | |
tree | fbb540382bf96d58ae2af92667eef26e38a5ad93 /apps/sympathy.c | |
parent | 202cc4119ab0006fee4453bad4297f45acf41b92 (diff) | |
download | sympathy-5bffe5e4528e109b346f6dd9128176df912ff4e8.tar.gz sympathy-5bffe5e4528e109b346f6dd9128176df912ff4e8.tar.bz2 sympathy-5bffe5e4528e109b346f6dd9128176df912ff4e8.zip |
*** empty log message ***
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r-- | apps/sympathy.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c index c14b8ec..b19cb94 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.43 2008/03/12 01:26:56 james + * *** empty log message *** + * * Revision 1.42 2008/03/11 15:02:52 james * *** empty log message *** * @@ -201,7 +204,7 @@ sigchld (int dummy) wait3 (&status, WNOHANG, NULL); } -/* Dispell zombies, from for example log compression */ +/* Dispell zombies, from, for example, log compression */ void garlic (void) { @@ -717,7 +720,12 @@ main (int argc, char *argv[]) } if (oflags['p']) { - ctx->t = ptty_open (NULL, NULL, &size); + if (optind <argc) { + ctx->t = ptty_open (argv[optind], &argv[optind], &size); + } else { + ctx->t = ptty_open (NULL, NULL, &size); + } + if (!ctx->t) fatal_moan ("unable to open a ptty"); } else { |