Re: FVWM: Re: Exec vs. exec

From: Randy J. Ray <rjray_at_uswest.com>
Date: Thu, 3 Apr 1997 11:15:00 -0700

> You're both right. There are four possibilities:
>
> 1) Exec xterm
> 2) Exec exec xterm
> 3) Exec xterm &
> 4) Exec exec xterm &
>
> 1 creates two processes, 2 creates one process. 3 creates two
> processes, but the shell immediately exits (because of the "&"). I
> don't know about 4.
>
> Seems like 2 is the best, except for complex situations, where one
> would prefer 3, I guess.
>
> Any opinions, anybody?

Just the opinion I've had since this topic first came up: there should be a
different keyword-- call it ExecNoShell for arguments' sake-- that uses fork
and execve instead of system() to spawn the process. Then, if you need/want the
shell level (for the sake of variable evaluation perhaps) you can use Exec.

Randy
--
===============================================================================
Randy J. Ray -- U S WEST Technologies IAD/CSS/DPDS         Phone: (303)595-2869
                Denver, CO                                     rjray_at_uswest.com
"It's not denial. I'm just very selective about the reality I accept." --Calvin
===============================================================================
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Apr 03 1997 - 12:15:36 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST