Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Calling die in a subshell
Date: Sat, 15 Jun 2013 16:06:41
Message-Id: 51BC9105.5070604@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 The devmanual warns that calling die in a subshell does not work.
5
6 http://devmanual.gentoo.org/ebuild-writing/error-handling/index.html
7
8 This warning has been obsolete for some time; modern versions of
9 Portage handle die in a subshell just fine.
10
11 In fact, at least a couple of eclasses rely on this behavior. For
12 example, python-r1 uses subshells created by multiprocessing.eclass to
13 implement parallel "sub-phase" functions, any of which may call die on
14 failure.
15
16 Are there any objections to removing this warning from the devmanual?
17
18 Also, I believe there may be a question or two on the recruiting
19 quizzes that would need to be updated.
20 -----BEGIN PGP SIGNATURE-----
21 Version: GnuPG v2.0.20 (GNU/Linux)
22
23 iF4EAREIAAYFAlG8kQUACgkQC77qH+pIQ6RMcAD/Ub0qkpXi/6tjNC/vHTXr2lLu
24 iprwtszsDnZGLOkmVKcA/R85pTIBT3Udo0Gc2/g2TJo6uzG8ppDbMc9bSHMgQtFf
25 =1qx7
26 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Calling die in a subshell "Diego Elio Pettenò" <flameeyes@×××××××××.eu>
Re: [gentoo-dev] Calling die in a subshell Ulrich Mueller <ulm@g.o>