خرید بک لینک

I didn't exactly found something about that in the man-page. How is the supposed behavior in subprocesses spawned by a process which was itself spawned by stdbuf?

E.g.:

stdbuf -oL myprog

From the code, I get that it sets LD_PRELOAD, and as far as I know, all environment variables are inherited in any subprocesses.

I'm interested in both fork(); and fork(); execv(); subprocesses. (Not sure if that would make a difference.)

fork(); should not change the behavior at all. execv() would use the same LD_PRELOAD (as well as the stdbuf settings which also stored in env) and thus apply the same behavior (from the example: stdout is line-buffered).

Right?

برچسب: نویسنده: استخدام کار تاريخ: جمعه 10 ارديبهشت 1395 ساعت: 16:10

صفحه بندی