FreeBSD Bugzilla – Attachment 61654 Details for
Bug 92342
Enjoin to use the sh exec statement in the Porter's Handbook
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.24 KB, created by
Jean-Yves Lefort
on 2006-01-26 03:30:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jean-Yves Lefort
Created:
2006-01-26 03:30:10 UTC
Size:
1.24 KB
patch
obsolete
>Index: book.sgml >=================================================================== >RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v >retrieving revision 1.673 >diff -u -r1.673 book.sgml >--- book.sgml 22 Jan 2006 23:20:29 -0000 1.673 >+++ book.sgml 26 Jan 2006 03:25:20 -0000 >@@ -9227,6 +9227,26 @@ > for their files.</para> > </sect1> > >+ <sect1 id="dads-sh-exec"> >+ <title>Use the <function>exec</function> statement in wrapper scripts</title> >+ >+ <para>If the port installs a shell script whose purpose is to launch >+ another program, and if launching that program is the last action >+ performed by the script, make sure to modify the script so that >+ it launches the program using the <function>exec</function> >+ statement, for instance:</para> >+ >+ <programlisting>#!/bin/sh >+exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@"</programlisting> >+ >+ <para>The <function>exec</function> statement replaces the shell >+ process with the specified program. If <function>exec</function> >+ is omitted, the shell process remains in memory while the >+ program is executing, and needlessly consumes system >+ resources.</para> >+ >+ </sect1> >+ > <sect1 id="dads-uid-and-gids"> > <title>UIDs and GIDs</title>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 92342
: 61654