*** empty log message ***
authorroot <root>
Tue, 17 Jan 2006 11:02:10 +0000 (11:02 +0000)
committerroot <root>
Tue, 17 Jan 2006 11:02:10 +0000 (11:02 +0000)
src/init.C
src/init.h
src/logging.C

index 77f031f1254f134c2cea6de8f972e964e2e741f4..207dab16b9b78c974f0afc9651b186da8b6a7871 100644 (file)
@@ -1411,7 +1411,6 @@ rxvt_term::run_command (const char *const *argv)
     return;
 #endif
 
-#ifndef __QNX__
   /* spin off the command interpreter */
   switch (cmd_pid = fork ())
     {
@@ -1468,14 +1467,6 @@ rxvt_term::run_command (const char *const *argv)
         pty.close_tty ();   /* keep STDERR_FILENO, pty.pty, display->fd () open */
         break;
     }
-#else                           /* __QNX__ uses qnxspawn () */
-  fchmod (pty.tty, 0622);
-  fcntl (pty.tty, F_SETFD, FD_CLOEXEC);
-  fcntl (pty.pty, F_SETFD, FD_CLOEXEC);
-
-  if (run_child (argv) == -1)
-    exit (EXIT_FAILURE);
-#endif
 }
 
 /* ------------------------------------------------------------------------- *
@@ -1529,7 +1520,6 @@ rxvt_term::run_child (const char *const *argv)
   sigemptyset (&ss);
   sigprocmask (SIG_SETMASK, &ss, 0);
 
-#ifndef __QNX__
   /* command interpreter path */
   if (argv != NULL)
     {
@@ -1565,62 +1555,6 @@ rxvt_term::run_child (const char *const *argv)
       /* no error message: STDERR is closed! */
     }
 
-#else                           /* __QNX__ uses qnxspawn () */
-
-  char iov_a[10] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
-  char *command = NULL, fullcommand[_MAX_PATH];
-  char **arg_v, *arg_a[2] = { NULL, NULL };
-
-  if (argv != NULL)
-    {
-      if (access (argv[0], X_OK) == -1)
-        {
-          if (strchr (argv[0], '/') == NULL)
-            {
-              searchenv (argv[0], "PATH", fullcommand);
-
-              if (fullcommand[0] != '\0')
-                command = fullcommand;
-            }
-
-          if (access (command, X_OK) == -1)
-            return -1;
-        }
-      else
-        command = argv[0];
-
-      arg_v = argv;
-    }
-  else
-    {
-      if ((command = getenv ("SHELL")) == NULL || *command == '\0')
-        command = "/bin/sh";
-
-      arg_a[0] = my_basename (command);
-
-      if (OPTION (Opt_loginShell))
-        {
-          login = rxvt_malloc ((strlen (arg_a[0]) + 2) * sizeof (char));
-
-          login[0] = '-';
-          strcpy (&login[1], arg_a[0]);
-          arg_a[0] = login;
-        }
-
-      arg_v = arg_a;
-    }
-
-  iov_a[0] = iov_a[1] = iov_a[2] = pty.tty;
-  cmd_pid = qnx_spawn (0, 0, 0, -1, -1,
-                       _SPAWN_SETSID | _SPAWN_TCSETPGRP,
-                       command, arg_v, environ, iov_a, 0);
-  if (login)
-    free (login);
-
-  pty.close_tty ();
-  return pty.pty;
-#endif
-
   return -1;
 }
 
index e8259fa550de5deae78c29c39bb15be59f3447ee..ce69b1a6c802bbdddc3776a6838dc5b56b552d16 100644 (file)
 # define _NEW_TTY_CTRL         /* to get proper defines in <termios.h> */
 #endif
 
-#ifdef __QNX__                 /* autoconf someday */
-# include <process.h>
-#endif
-
 #ifdef TTY_GID_SUPPORT
 # include <grp.h>
 #endif
 # define O_NOCTTY      0
 #endif
 #ifndef ONLCR
-# define ONLCR         0               /* QNX, at least */
+# define ONLCR         0
 #endif
 
 #define CONSOLE                "/dev/console"  /* console device */
index d3f00917fa7f152c86e678afceda3b20d8ebc36a..86d3bdf12b4ffd7ebaec4bd4634d4d6968008e4e 100644 (file)
@@ -14,7 +14,7 @@
  *                             - extensive modifications
  * Copyright (c) 1999      D J Hawkey Jr <hawkeyd@visi.com>
  *                             - lastlog support
- * Copyright (c) 2004      Marc Lehmann <pcg@goof.com>
+ * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by