Reputation
17,775
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
9 61 99
Newest
 Nice Answer
Impact
~1.3m people reached

Dec
28
answered Invoking pushd in a shell script
Dec
28
answered How to find the BSP sections in the Linux source code?
Dec
25
answered Light up a LED through USB
Dec
24
accepted How does one atomically change a symlink to a directory in busybox?
Dec
23
comment Why are spin locks good choices in Linux Kernel Design instead of something more common in userland code, such as semaphore or mutex?
Spinlocks are not always a waste in kernel code. This was explained very well by @HandyGandy in your previous question.
Dec
22
revised How does one atomically change a symlink to a directory in busybox?
added 14 characters in body
Dec
22
asked How does one atomically change a symlink to a directory in busybox?
Dec
22
comment What is a spinlock in Linux?
In the spin lock method, the scheduler resumes the process every ~1 second to do its task (which is simply check the existence of a file). In the inotifywait example, the scheduler only resumes the process when the child process (inotifywait) exits. Inotifywait is also sleeping; the scheduler only resumes it when the inotify event happens.
Dec
22
revised What is a spinlock in Linux?
added 536 characters in body
Dec
22
revised What is a spinlock in Linux?
added 3 characters in body
Dec
22
answered What is a spinlock in Linux?
Dec
20
comment How can I run keychain in a way that only has the first shell prompt for keys on startup?
Yes - There is time between the test -e $file and touch $file. This is why I used the mkdir in my example. You can read more about atomic operations here: unix.stackexchange.com/questions/70/…
Dec
19
revised How can I run keychain in a way that only has the first shell prompt for keys on startup?
Clarification & explanation
Dec
18
revised How can I run keychain in a way that only has the first shell prompt for keys on startup?
deleted 13 characters in body
Dec
18
revised How can I run keychain in a way that only has the first shell prompt for keys on startup?
Add explanation
Dec
18
answered How can I run keychain in a way that only has the first shell prompt for keys on startup?
Dec
17
accepted Vim command for inserting a character
Dec
17
answered What are high memory and low memory on Linux?
Dec
16
asked Vim command for inserting a character
Dec
16
comment $VAR vs ${VAR} and to quote or not to quote
Thanks, @Gilles; updated to match.