[hackers] [tabbed] Readding the spawn compatibility to use it in config.h. Thanks to Chris Hall. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Mon, 20 Aug 2012 09:10:04 +0200 (CEST)

changeset: 170:141c7ec9d603
user: Christoph Lohmann <20h_AT_r-36.net>
date: Mon Aug 20 09:02:56 2012 +0200
files: tabbed.c
description:
Readding the spawn compatibility to use it in config.h. Thanks to Chris Hall.


diff -r 05f6545a46a9 -r 141c7ec9d603 tabbed.c
--- a/tabbed.c Sat Jul 07 22:50:40 2012 +0200
+++ b/tabbed.c Mon Aug 20 09:02:56 2012 +0200
_AT_@ -784,8 +784,13 @@
                 if(dpy)
                         close(ConnectionNumber(dpy));
                 setsid();
- execvp(cmd[0], cmd);
- fprintf(stderr, "tabbed: execvp %s", cmd[0]);
+ if(arg && arg->v) {
+ execvp(((char **)arg->v)[0], (char **)argv->v);
+ fprintf(stderr, "tabbed: execvp %s", ((char **)arg->v)[0]);
+ } else {
+ execvp(cmd[0], cmd);
+ fprintf(stderr, "tabbed: execvp %s", cmd[0]);
+ }
                 perror(" failed");
                 exit(0);
         }
Received on Mon Aug 20 2012 - 09:10:04 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 20 2012 - 09:12:07 CEST