use correct API in resm_select() to avoid a segfault
use correct API in resm_select() to avoid a segfault

pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable