alexander.viro

来自「sysvinit--linux系统下的init」· VIRO 代码 · 共 30 行

VIRO
30
字号
I proposed moving some stuff to a seperate file, such as there-exec routines. Alexander wrote:According to Alexander Viro <viro@math.psu.edu>:> As for the code separation - I think it's nice. Actually, read_inittab()> with get_part() and newFamily are also pretty separatable. Another good> set is any(), spawn(), startup(), spawn_emerg() and start_if_needed().> BTW, fail_check();process_signals(); is equivalent to process_signal();> fail_check();. I think that swapping them (in main loop) would be a good> idea - then we can move fail_check() into start_if_needed(). And one more> - I'ld propose to move start_if_needed to the beginning of the main loop,> as in>       foo();>       while(1) { bar();foo();> #if 0>               baz();> #endif>       }> to>       while(1) { foo();bar();> #if 0>               baz();> #endif>       }>>> What do you think about it?

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?