☑ An Unhealthy Environment

Recently I’ve been writing code to spawn child processes that had to deal with the POSIX functions for querying and manipulating environment variables. I’ve only just realised how truly awful this interface is in the context of modern multi-threaded applications, and this post is simply me sharing the pain.

Read post →

25 Mar 2015 at 7:28AM by Andy Pearce in Software  | Photo by Alex Gindin on Unsplash  | Tags: posix  environment-variables linux  |  See comments

☑ Process groups and sessions

I finally took a little time to get my head around POSIX process groups and sessions.

Read post →

21 Aug 2013 at 9:26PM by Andy Pearce in Software  | Photo by Yuriy Rzhemovskiy on Unsplash  | Tags: linux  processes posix  |  See comments

☑ Just like old

If you have the luxury of migrating your Linux installation to a new hard disk before the old one packs up entirely, it’s quite easily done with standard tools.

Read post →

5 Jun 2013 at 6:02PM by Andy Pearce in Software  | Photo by Cara Fuller  | Tags: linux backup  |  See comments

☑ File Capabilities In Linux

File capabilities offer a secure alternative to SUID executables, but can be a little confusing at first.

Read post →

11 Mar 2013 at 12:07PM by Andy Pearce in Software  | Photo by Alexey Ruban on Unsplash  | Tags: linux capabilities  |  See comments

☑ Sharing pthreads locks between processes

How to share pthreads primitives across processes.

Read post →

31 Jan 2013 at 1:02PM by Andy Pearce in Software  | Photo by Elaine Casap on Unsplash  | Tags: pthreads  linux  ipc posix  |  See comments

☑ apport in a storm

Ubuntu’s apport service is less then helpful for developers — learn how to disable it.

Read post →

29 Jan 2013 at 1:16PM by Andy Pearce in Software  | Photo by Anna Goncharova on Unsplash  | Tags: linux  ubuntu debugging  |  See comments

☑ Bash expansion weirdness

Expanding a substring of “$*” in bash seems to magically add command-line parameter zero.

Read post →

25 Jan 2013 at 11:12AM by Andy Pearce in Software  | Photo by Vicko Mozara  | Tags: linux bash  |  See comments