From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10409 invoked by alias); 6 Mar 2012 09:01:33 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30321 Received: (qmail 6918 invoked from network); 6 Mar 2012 09:01:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) Received-SPF: pass (google.com: domain of dipakgaigole@gmail.com designates 10.112.8.129 as permitted sender) client-ip=10.112.8.129; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dipakgaigole@gmail.com designates 10.112.8.129 as permitted sender) smtp.mail=dipakgaigole@gmail.com; dkim=pass header.i=dipakgaigole@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=CiUXu89JTN++au3JKPp769VkUVESjgFdAHDRzm2rAvo=; b=QPiDxm3NeFEarm6+AMs+7qKtaJmlz0oveXGx5NexqyQ5OirA5tsclH0k5fYv7sqO/F BmIiJFrAkm8hbwg0m0uvyG3ZbXOckf06+GvAIakP4ZWAW69nW4YUZvKN5bMlJw0cVO7U Ju9Y5l4kbLHuzN3fhquzheCaqDHmVzi4QMPeHYPYUfOZZIDOPqRAONTY3tBfAD5KqQCr UmMYNQHjKoPX7CSQfV4IvA0HhSKEBamvuumjMqwdlUyr7mnk52G9C3oEHD+WK82qrUME zEfUN9JdIdmxG7plJ13PffowlCLXZ+cu8B+5fFOzvu12OAQFVB3ou/8fpltf/3boyk5u RPMQ== MIME-Version: 1.0 In-Reply-To: <120229110632.ZM28317@torch.brasslantern.com> References: <120223081441.ZM2715@torch.brasslantern.com> <120224100518.ZM13322@torch.brasslantern.com> <120226115220.ZM17815@torch.brasslantern.com> <120229110632.ZM28317@torch.brasslantern.com> Date: Tue, 6 Mar 2012 14:31:24 +0530 Message-ID: Subject: Re: zsh behavior when fork() failed From: Dipak Gaigole To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Mar 1, 2012 at 12:36 AM, Bart Schaefer wrote: > On Feb 29, =A06:27pm, Dipak Gaigole wrote: > } > } I have applied this patch but unfortunately the script still continues > } even after the fork failures while executing commands from the script. > } > } bash-2.05b$ cat /tmp/test1.sh > } #!/bin/sh > } x=3D"My default value" > } x=3D`date` > } echo $? > } echo "Current Date is:" "$x" > } date > } echo $? > } bash-2.05b$ zsh /tmp/test1.sh > } /tmp/test1.sh:3: fork failed: resource temporarily unavailable > } 1 > } Current Date is: My default value > } /tmp/test1.sh:6: fork failed: resource temporarily unavailable > } 1 > } bash-2.05b$ > } > } Can you please check this on your end? > > I get (schaefer[N] is my top-level prompt): > > schaefer[691] Src/zsh -f /tmp/test1.sh > /tmp/test1.sh:3: fork failed: resource temporarily unavailable > 1 > Current Date is: My default value > /tmp/test1.sh:6: fork failed: resource temporarily unavailable > schaefer[692] echo $? > 1 > > There's no exit after `date` because that was in a subshell, but I do > see the exit after the command in the parent shell. > > Are you sure a path-searched "zsh" is finding the right binary? Sorry my bad :( I had missed one of the fatal condition. Thanks for your help Bart !!! -Dipak